What exactly is ovulation?

Does ovululation happen right before your period or is it part of your fertile days?