It is easy to insert blocks in beamer that make your slides look more organized and easier to follow. In the following minimal working example you can see the basic usage:

% use the beamer document class

% set a theme to load a block style


% create a new frame

% set the frame title
\frametitle{First frame}
% create a basic block
    \begin{block}{Basic block title} 
        Basic block contents.
% create an example block    
    \begin{exampleblock}{Example block title} 
        Example block contents.
% create an alert block  
    \begin{alertblock}{Alert block title} 
        Alert block contents.


Compiling this code yields:

How different kinds of blocks look with the Antibes theme.

From above, we can remark that each block has its own style, which is determined by the theme set (antibes in this case) but you can select another theme or even build your own custom blocks.

The blocks are specially interesting when writing mathematical presentations, since they can be used to enclose theorems, corollaries, examples, lemmas, observations, proofs, and so on.

For example, the following code:

% Math blocks in beamer
% package to build the theorem-like environments

% set a theme for cooler blocks

% set a new style for remark environments

% let’s create a frame to illustrate how beamer works
% with theorem environments

\frametitle{Mathematical content}

        One is less than two, that is, $2>1$.

        This is true, since $2=1+1$ and $1$ is positive.
        I don’t know if this theorem deserves a corollary
        This was an easy theorem.


is a minimal example that illustrates how beamer handles theorem-like environments. The output is shown below!

Math Blocks in beamer
How beamer takes care of mathematical blocks.

For more details, I invite you to read this post: “Your guide to Beamer Blocks“.