A measurement of the $$B^{0}$$ B 0 meson lifetime using $$ B^{0} \rightarrow J/\psi K^{*0} $$ B 0 → J / ψ K ∗ 0 decays in data from 13 $$\text {TeV}$$ TeV proton–proton collisions with an integrated luminosity of $$ 140~\mathrm {fb^{-1}} $$ 140 fb - 1 recorded by the ATLAS detector at the LHC is presented. The measured effective lifetime is $$ \tau = 1.5053\pm 0.0012~\mathrm {(stat.)} \pm 0.0035~\mathrm {(syst.)~ps}. $$ τ = 1.5053 ± 0.0012 ( stat . ) ± 0.0035 ( syst . ) ps . The average decay width extracted from the effective lifetime, using parameters from external sources, is $$\begin{aligned} \Gamma _d = 0.6639\pm 0.0005~\mathrm {(stat.)} \pm 0.0016~\mathrm {(syst.)}\\ \pm 0.0038~\text {(ext.)} \text {~ps}^{-1}, \end{aligned}$$ Γ d = 0.6639 ± 0.0005 ( stat . ) ± 0.0016 ( syst . ) ± 0.0038 (ext.) ps - 1 , where the uncertainties are statistical, systematic and from external sources. The earlier ATLAS measurement of $$\Gamma _s$$ Γ s in the $$B^{0}_{s} \rightarrow J/\psi \phi $$ B s 0 → J / ψ ϕ decay was used to derive a value for the ratio of the average decay widths $$\Gamma _d$$ Γ d and $$\Gamma _s$$ Γ s for $$B^{0} $$ B 0 and $$B^{0}_{s} $$ B s 0 mesons respectively, of $$ \frac{\Gamma _d }{\Gamma _s } = 0.9905\pm 0.0022~\text {(stat.)} \pm 0.0036~\text {(syst.)} \pm 0.0057~\text {(ext.)}. $$ Γ d Γ s = 0.9905 ± 0.0022 (stat.) ± 0.0036 (syst.) ± 0.0057 (ext.) . The measured lifetime, average decay width and decay width ratio are in agreement with theoretical predictions and with measurements by other experiments. This measurement provides the most precise result of the effective lifetime of the $$B^{0}$$ B 0 meson to date.