L Brands, the parent company of Victoria’s Secret, is losing its longtime chief marketing officer Ed Razek, a departure that adds to the turbulence at the once-dominant lingerie company.

Mr. Razek is retiring, according to a note sent to employees by Leslie H. Wexner, the company’s chief executive.

Victoria’s Secret — which for years defined female sexiness for many Americans — is struggling to reinvent itself in the #MeToo era. The company recently hired its first openly transgender lingerie model, Valentina Sampaio, 22, for a photo shoot. The Brazilian model’s agent, Erio Zanon, said that Ms. Sampaio would appear in marketing for VS Pink, the company’s athletic line.

The marketing executive made headlines last year when he said in an interview with Vogue that Victoria’s Secret should not cast “transsexuals” in its fashion show “because the show is a fantasy.” Mr. Razek later apologized for his “insensitive” remarks.