Set the mantel in place and centered over the fireplace opening. Level the mantel left to right with a 3-foot level, and use a torpedo level to determine whether it is level front to back. Place shims under the legs of the mantel to bring it into level. If your mantel is a shelf style, not a surround type with legs, steady the unit at level in both directions.
Trace the outline of the mantel onto the wall, using a pencil and a light touch.
Measure the size of the cleats you will need to cut by using a tape measure to determine the lengths and widths, measuring on the back side of the mantel. Start with the cleat for the top of the mantel, and then measure what will be needed for each leg. The cleats should fit tightly against the back of the mantel face and not extend farther than the back edge --- the edge that will rest against the brick wall.
Cut 2-inch by 4-inch boards to the correct dimensions, using a table or circular saw.
Measure the thickness of the mantel top and legs to determine how far back you will need to mount the cleats from the reference lines you scribed in Step 2. Transfer those measurements to the reference lines and mark them on the wall.
Chuck a hammer drill attachment into a power drill and chuck a 1/2-inch-diameter carbide-tipped masonry bit into the attachment. Hold the top cleat in the exact location where it will be mounted. Drill four pilot holes, evenly spaced, through the cleat and into the brick behind it. Make sure you drill into the brick, not the mortar, since brick is more dense and will grip the mounting screws better.
Switch the hammer drill attachment to the "drill only" setting and chuck a screwdriver bit. Attach the top cleat to the brick with 2-1/2-inch concrete screws.
Repeat Steps 6 and 7 for the two legs, if present on your mantel.
Slide the mantel over the cleats and push it flush to the brick wall. Screw 2-inch drywall screws through the back top of the mantel into the center of the top cleat. Next, screw the legs to their respective cleats the same way. Space the screws about 16 inches apart.