Self-employed and new to quarterly tax

I've been a freelancer for a few years now, but only this year I got a fine for not paying quarterly taxes when I did my tax return in April. I didn't realize I needed to pay quarterly taxes. Are quarterly taxes an estimate of your income for the whole year, or just based on what you've made in that quarter? I'm not sure how this works...