The depth of field is the range of the image that is in focus in front of and behind the point of focus. Try making the aperture smaller or shortening the focal length. Reduce camera shake to stop introducing blurred images. For tips on preventing camera shake, refer to Prevent camera shake (Digital Single-Lens Reflex Camera) or Prevent camera
Focus bracketing enables continuous shooting with the focal distance changed automatically after each shot. From these images, you can create a single image in focus over a wide area by using an application that supports depth compositing, such as Digital Photo Professional (EOS software). Configurable functions vary depending on the camera BPBFZ.