The US Marine Corps is banning the display of the Confederate flag from all Marine installations, the Marines announced Friday.

Us Marine Corps, Confederate FlagStephanie Keith / Getty Images

"The Marine Corps shall remove the Confederate battle flag from all installation public spaces and work areas in order to support our core values, ensure unit cohesion and security, and preserve good order and discipline," the order reads.

The order gives leeway for certain images containing the Confederate flag: "Displays where the Confederate battle flag is depicted, but not the main focus of the display. For example, works of art, educational, or historical displays depicting a civil war battle where the confederate battle flag is present, but not the main focus of the work."

The Marines explained the decision on Twitter writing, "The Confederate battle flag has all too often been co-opted by violent extremist and racist groups whose divisive beliefs have no place in our Corps. Our history as a nation, and events like the violence in Charlottesville in 2017, highlight the divisiveness the use of the Confederate battle flag has had on our society. This presents a threat to our core values, unit cohesion, security, and good order and discipline."

Check out the official order for yourself here.