Ovary Cyst

Ari
So I just spent the whole night in the emergency room because I had a cyst in my ovaries and honestly I don't know what that means or what's going on because it's my first. I have pain medication but I don't really understand what a cyst even is and how it goes away?¿ Any help would bench appreciated because I'm very confused