Ancestry.com apologized Thursday for a controversial advertisement published to its YouTube channel earlier this month. The ad appeared to show a white man trying to convince a black woman in what appears to be in the antebellum South to head North with him to get married. It received immediate backlash online, with many people claiming the ad ignores the violent history of slavery.

The ad — called "Inseparable" — was uploaded to Ancestry's channel at the beginning of the month. The caption of the video described the two actors in the video as "lovers."

"Abigail," the man says as he shows her what appears to be a wedding ring. "We can escape to the North. There's a place we can be together, across the border."

Get Breaking News Delivered to Your Inbox

The woman attempts to respond, but the man interrupts, asking "Will you leave with me?"

Much of the online criticism of the ad focused on its romanticization of interracial relationships in the slave-owning South. Many pointed out that rape — not love — is the main reason why many black Americans have white ancestry.

nobody: ancestry dot com: how can we overly romanticize & create an irresponsible, ahistorical depiction of the relationship between white men & black women during the period of chattel slavery that completely disregards its power dynamics & the trauma of sexual exploitation? https://t.co/s5BqnoSg9x — Clint Smith (@ClintSmithIII) April 18, 2019

While it’s true that 1 in 4 black folks who test their male line through DNA end up finding a white man, it ain’t because of no damn slavery love story. I’m so tired of y’all. https://t.co/UwknpDDniL — Ida Bae Wells (@nhannahjones) April 18, 2019

What the hell is this @Ancestry?

Why do white people insist on romanticizing my Black female ancestors experiences with white men during slavery? They were raped, abused, treated like animals, beaten, and murdered by white men. Stop with the revisions.pic.twitter.com/cDEWdkzJPm — Bishop Talbert Swan (@TalbertSwan) April 18, 2019

One of about 1,000 awful things about this commercial is it ignores the fact that for black Americans - myself included - and for others in the diaspora, DNA and documentary ancestry information is as painful and traumatic as it is illuminating. These are not love stories. https://t.co/tuTpHwmnGk — Kimberly Atkins (@KimberlyEAtkins) April 18, 2019

Following the extensive online backlash, Ancestry — a popular site for tracing family history — has removed the ad. "Ancestry is committed to telling important stories from history," the company said in a statement to CBS News Thursday.

"This ad was intended to represent one of those stories," the statement said. "We very much appreciate the feedback we have received and apologize for any offense that the ad may have caused. We are in the process of pulling the ad from television and have removed it from YouTube."