Diffractive electroproduction of rho and phi mesons is measured at HERA with the H1 detector in the elastic and proton dissociative channels.