Pain during sex

Le
Anyone know why it's painful having sex? My boyfriend isn't big but it still hurts an uncomfortable amount. Not around the opening but deeper, only started recently.