Clicking during sex?

When me and my boyfriend have been having sex theres a click in body. Im not sure how else to describe it, it’s uncomfortable and kinda ruins sex. Its only recently that this has been happening. Does anyone know what it could be or how to help it??