Pain During Sex

Kate
so I've been having sex with my boyfriend for the past 2 years and within the last month I've been having a burning down there everytime we have sex. It goes away after about an hour but comes back everytime we're intimate. Does anyone know why this is happening or how to treat it?