A code block is a grouping of two or more statements enclosed between opening and closing curly braces ({ }).