WSFA is reporting Montgomery resident Lawrence Lee Spillers recorded the video with a camera attached to his motorcycle helmet while drag racing with the officer Sunday afternoon. He then posted it to YouTube.

"That is when MPD initiated its investigation and began termination proceedings," she said, but the officer decided to resign.

Police aren't releasing the name of the officer.

Earnhardt said Murphy has consulted with the District Attorney's Office about possible charges, and the incident remains under investigation.

In a written statement to AL.com, Murphy said “We do not promote, encourage or condone our officers to behave in such a fashion. We have a strict code of conduct. As chief of police, I am committed to providing the citizens of Montgomery with police officers who continuously display honest and ethical behavior standards.

“When a member of the Montgomery Police Department fails to adhere to our core values of honor, duty and loyalty, it is my duty to ensure they will not represent the MPD, or serve the citizens of Montgomery any further,” Murphy continued. “The officer in question no longer wears the badge of the Montgomery Police Department.”

In the video, Spillers begins talking to the police officer while both stopped at a traffic light. He then asks the officer if he wants to race.

The officer responds saying, his bike has turbo.

Spillers replies, "Let's see."

On the video, it is apparent Spillers and the officer race for several minutes with the officer outpacing the other motorcyclist.

It is unclear how fast the motorcycles were traveling on the 55 mile per hour thoroughfare, but they do pass vehicles and change lanes on the roadway.

Warning: Video contains explicit language.

Article updated at 12:29 p.m. to include additional information from the Department of Public Safety and a statement from the police chief.