An 18-year-old man has been charged after several people were attacked with a baseball bat at the Australian National University campus in Canberra.

ACT Policing said it charged the young man following the incident at ANU on Friday.

Shortly after 9am, police allege the man, a student at the uni, assaulted other students and a lecturer with a baseball bat.

In a statement, police said during the class, the student stood from his seat with a baseball bat and approached the lecturer at the front of the class.