There's a theorem that says that every ideal of a field $K$ becomes principal in its Hilbert Class Field. So to get an example, we take $K=\mathbb{Q}(\sqrt{-5})$ and ideal $(2, 1+\sqrt{-5})$ which is nonprincipal, and look at it in its HCF which is $\mathbb{Q}(\sqrt{-5}, i)$. This ideal becomes the principal ideal $(1+i)$. This takes some work to check, obviously: the identities
$2=(1+i)(1-i)$
$1+\sqrt{-5}=(1+i)\left(\frac{1+\sqrt{5}}{2}-i \cdot\frac{1-\sqrt{5}}{2}\right)$
$1+i=\left(i\cdot\frac{1-\sqrt{5}}{2}\right)\cdot 2+(1+\sqrt{-5})$
show the two inclusions. So this is an example of the theorem, and an example of your request.