A Marine was barred from walking at her graduation for wearing her uniform instead of a cap and gown at a high school in Chicago.

Students said Megan Howerton, who graduated from McHenry High School West Campus on Thursday, wasn't allowed to walk during the school's graduation ceremony because of a dress code issue, according to NBC 4.

She was wearing her dress blues when school officials refused to let her participate in the ceremony.

Scroll down for video

Megan Howerton (left at graduation and right), who graduated from McHenry High School West Campus on Thursday, wasn't allowed to walk during the school's graduation ceremony because of a dress code issue

The Chicago school district is now under fire for their decision to not let the marine walk with several angry individuals taking to social media to voice their frustrations prompting the hashtag #LetMeganWalk

Twitter users questioned the school's decision to not let Howerton walk across stage saying that she's protecting' the country

The Chicago school district is now under fire for their decision to not let the marine walk with several angry individuals taking to social media to voice their frustrations prompting the hashtag #LetMeganWalk.

McHenry Community High School District 156 released a statement on Friday that said the attention from the graduation ceremony 'is unfortunate and draws attention away from the collective achievements of the Class of 2016'.

The statement went on to say that school officials 'in no way looked to prevent the participation of this graduate or any graduate who has chosen to serve our nation'.

'Rather, the administration communicated in advance via letter, senior meeting, and practice, all the protocols expected of graduates, including attire.

'In some past cases, active-duty students elected to wear their gowns over top of their military uniforms, with their military hats, which was allowed.

'There was no communication to the administration that attire protocols would not be followed prior to the ceremony.

'The tradition of cap and gown regalia is aimed at the idea that our graduates are celebrated as a whole and in similar attire.'

The district said that the school 'has a long standing history of avid support for our military branches of service'.

An audience member recorded a video at the end of the ceremony of the graduates cheering for Howerton as one of the graduates walked into the audience and brought her down to sit with her classmates.

The video was posted to Facebook with the caption: 'The class of 2016 clearly wanted this Marine to be recognized. Regardless of dress code uniformity.

'They were unified as a class and clearly proud of their friend and classmate.'