The area in front of the point where you focused and the area behind that point can be sharp or blurry. If a small part of the photo is sharp (and the foreground or background is therefore blurry), it is referred to as a shallow depth of field. This is often used for portraits, and the blurry background is also called 'bokeh'. If a large part of the photo is sharp (including the foreground and background), it is referred to as a large depth of field. This is often used for landscape photography.

Aperture
The key term for controlling the depth of field in your photo is aperture. The setting of the aperture largely determines how the depth of field in a photo is. If the aperture is fully open (the lowest f-number), then the depth of field is the smallest. The background is therefore blurry, out of focus. If you close the aperture more (a higher f-number), the depth of field increases. A larger portion of the background is now also sharp in your photo. Some lenses have a large maximum aperture opening, for example, f/1.4. These types of lenses are often popular among portrait photographers because they can create photos with a shallow depth of field. The background is then out of focus, making the subject appear somewhat detached from the background.
Not only the aperture affects the depth of field, but also the focal length of your lens is decisive. The greater the focal length, the smaller the depth of field in your photo. This means that photos taken with a long zoom lens tend to have a blurry background more than photos taken with a wide-angle lens. Do you have a zoom lens? Then a smaller area of the photo is sharp when you are fully zoomed in than when you zoom out. This is also true with the same exposure settings.
- Also read: Understand equipment: the lens
Distance and Depth of Field
Also important for depth of field is the distance to the subject. The closer your focus point is, the smaller the depth of field. If you photograph a landscape in the distance, that landscape will be completely sharp, including the sky behind it. If you get very close to the subject? Then the depth of field is small and the background is out of focus. Just think of macro photography, where only a very small part of the photo is sharp.

Focusing
When you want to work with a smaller depth of field, it is very important to focus on the right point. With a small depth of field, only a small part is sharp, and in front of and behind the focus point, it quickly becomes out of focus. So if you accidentally focus on someone's nose instead of their eye, there is a good chance that the eyes will not be completely sharp in the photo. Do you have an extremely small depth of field? Then for portraits, focus on the eye that is closest to the camera (if the model is at an angle). The area that is sharp extends from about 1/3 of the length of the depth of field in front of the focus point and ends 2/3 after the focus point. Make sure to set your camera's autofocus to one focus point, and preferably choose this at the position where you want to focus in the final composition. Especially with depth of field, rotating the camera after focusing is a risk, and there is a good chance that the sharpness is no longer on the right point.