The observation of associated production of an (1S) meson with a Z boson and a measurement of the ratio of its fiducial cross section to the fiducial cross section of the Z boson are presented. Both the (1S) meson and the Z boson are identified via decays into a pair of opposite-sign muons. The analysis is based on proton-proton (pp) collision data at = 13 TeV, collected with the CMS detector in 2016$-^{-1}$. Using the production of the Z boson decaying into four muons as a normalization channel, the ratio of the fiducial cross sections (pp Z (1S))(Z )((1S) ) to (pp Z)(Z 4) is measured to be = (21.1 55 (stat) 0.6 (syst) 10), where stat and syst denote the statistical and systematic uncertainties, respectively. The result is used to extract the effective double-parton scattering cross section = 13.0. In addition, for the first time, is measured in bins of the transverse momentum of the (1S) meson or of the Z boson.