Context. Measurements of the occultation of an exoplanet at visible wavelengths allow us to determine the reflective properties of a planetary atmosphere. The observed occultation depth can be translated into a geometric albedo. This in turn aids in characterising the structure and composition of an atmosphere by providing additional information on the wavelength-dependent reflective qualities of the aerosols in the atmosphere. Aims. Our aim is to provide a precise measurement of the geometric albedo of the gas giant HD 189733b by measuring the occultation depth in the broad optical bandpass of CHEOPS (350-1100 nm). Methods. We analysed 13 observations of the occultation of HD 189733b performed by CHEOPS utilising the Python package PyCHEOP...