Ovulation and fertility

So I was having a discussion with someone about this and now we're confused. When are you the most fertile in your cycle, before or after your period?

Any input would be great, thanks ladies!!