Should I use } or }; at the end of a code block?

Something I’ve always wondered, but never got round to asking is should I use…

}

… or…

};

… at the end of a code block? What’s the difference as I’ve seen both used but no explanation as to why?