A search for new long-lived particles decaying to leptons using proton–proton collision data produced by the CERN LHC at $$\sqrt{s}=13\,\text {Te}\text {V} $$
s
=
13
Te
is presented. Events are selected with two leptons (an electron and a muon, two electrons, or two muons) that both have transverse impact parameter values between 0.01 and 10$$\,\text {cm}$$
cm
and are not required to form a common vertex. Data used for the analysis were collected with the CMS detector in 2016, 2017, and 2018, and correspond to an integrated luminosity of 118 (113)$$\,\text {fb}^{-1}$$
fb
-
1
in the $${{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} {{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} $$
e
e
channel ($${{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} {\upmu } $$
e
μ
and $${\upmu } {\upmu } $$
μ
μ
channels). The search is designed to be sensitive to a wide range of models with displaced $${{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} {\upmu } $$
e
μ
, $${{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} {{\mathrm{e}}_{\mathrm{}}^{\mathrm{}}} $$
e
e
, and $${\upmu } {\upmu } $$
μ
μ
final states. The results constrain several well-motivated models involving new long-lived particles that decay to displaced leptons. For some areas of the available phase space, these are the most stringent constraints to date.