Pepsi has pulled an advert that sparked an outcry and accusations that the drinks maker was trivialising recent street protests across the US.

The advert featured reality TV star Kendall Jenner leaving a photo shoot to join a heavily policed demonstration.

She defuses the tension by walking to the police line and handing an officer a can of Pepsi, prompting cheers.

In a statement posted on its website, Pepsi said they did not intend to make light of serious issues.

The much-ridiculed advert was posted to YouTube on Tuesday evening but was no longer accessible there less than 24 hours later.

For nearly two years, there have been protests about the use of force by police against African Americans.