(FOXNEWS) — A Florida middle school student was arrested earlier this month after allegedly getting into a confrontation with school officials and a law enforcement officer following reports that he refused to stand for the Pledge of Allegiance.

The 11-year-old attends the sixth grade at Lawton Chiles Middle Academy in Lakeland. He has been charged with disrupting a school function and resisting arrest without being violent, both misdemeanors. The Feb. 4 incident began when the boy allegedly told his substitute teacher he did not want to stand for the pledge because he viewed the American flag as racist against African-Americans.

Note: Read our discussion guidelines before commenting.