diff --git a/src/gstreamer/gstlibcameraprovider.cpp
b/src/gstreamer/gstlibcameraprovider.cpp
index 6eb0a0eb..86fa2542 100644
--- a/src/gstreamer/gstlibcameraprovider.cpp
+++ b/src/gstreamer/gstlibcameraprovider.cpp
@@ -31,6 +31,7 @@ GST_DEBUG_CATEGORY_STATIC(provider_debug);

 enum {
  PROP_DEVICE_NAME = 1,
+ PROP_ENABLE_AUTO_FOCUS = 2,
 };

 #define GST_TYPE_LIBCAMERA_DEVICE gst_libcamera_device_get_type()
@@ -40,6 +41,7 @@ G_DECLARE_FINAL_TYPE(GstLibcameraDevice,
gst_libcamera_device,
 struct _GstLibcameraDevice {
  GstDevice parent;
  gchar *name;
+ gboolean enable_auto_focus = false;
 };

 G_DEFINE_TYPE(GstLibcameraDevice, gst_libcamera_device, GST_TYPE_DEVICE)
@@ -56,6 +58,7 @@ gst_libcamera_device_create_element(GstDevice *device,
const gchar *name)
  g_assert(source);

  g_object_set(source, "camera-name", GST_LIBCAMERA_DEVICE(device)->name,
nullptr);
+ g_object_set(source, "enable-auto-focus",
GST_LIBCAMERA_DEVICE(device)->enable_auto_focus, nullptr);

  return source;
 }
@@ -68,6 +71,7 @@ gst_libcamera_device_reconfigure_element(GstDevice
*device,
  return FALSE;

  g_object_set(element, "camera-name", GST_LIBCAMERA_DEVICE(device)->name,
nullptr);
+ g_object_set(element, "enable-auto-focus",
GST_LIBCAMERA_DEVICE(device)->enable_auto_focus, nullptr);

  return TRUE;
 }
@@ -82,6 +86,9 @@ gst_libcamera_device_set_property(GObject *object, guint
prop_id,
  case PROP_DEVICE_NAME:
  device->name = g_value_dup_string(value);
  break;
+ case PROP_ENABLE_AUTO_FOCUS:
+ device->enable_auto_focus = g_value_get_boolean(value);
+ break;
  default:
  G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
  break;
@@ -121,6 +128,12 @@
gst_libcamera_device_class_init(GstLibcameraDeviceClass *klass)
  (GParamFlags)(G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE |
       G_PARAM_CONSTRUCT_ONLY));
  g_object_class_install_property(object_class, PROP_DEVICE_NAME, pspec);
+ GParamSpec *spec2 = g_param_spec_boolean("enable-auto-focus",
+                        "Enable auto-focus",
+                        "Enable auto-focus if set to true, "
+                        "disable it if set to false",
+                         FALSE, G_PARAM_WRITABLE);
+ g_object_class_install_property(object_class, PROP_ENABLE_AUTO_FOCUS,
spec2);
 }

 static GstDevice *
diff --git a/src/gstreamer/gstlibcamerasrc.cpp
b/src/gstreamer/gstlibcamerasrc.cpp
index a10cbd4f..672ea38a 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -146,6 +146,7 @@ struct _GstLibcameraSrc {
  GstTask *task;

  gchar *camera_name;
+ gboolean enable_auto_focus = false;

  GstLibcameraSrcState *state;
  GstLibcameraAllocator *allocator;
@@ -154,7 +155,8 @@ struct _GstLibcameraSrc {

 enum {
  PROP_0,
- PROP_CAMERA_NAME
+ PROP_CAMERA_NAME,
+ PROP_ENABLE_AUTO_FOCUS,
 };

 G_DEFINE_TYPE_WITH_CODE(GstLibcameraSrc, gst_libcamera_src,
