The teaching of mathematics at the Faculty of Military Technology of the University of Defence in the first two years of the five-year Military master’s degree is divided into the teaching of students in four specializations: Military Technologies – Mechanical, Military Technologies – Electrical, Military Geography and Cartography, and Cybersecurity. The article discusses the previous five-year experience in teaching the subjects Mathematics I, Mathematics II, Mathematics III, and Graph theory for the specialization in Cybersecurity, that the author of the paper gained while teaching, as a guarantor of these four subjects. The article provides an overview of the topics that are covered, typical exam assignments, and an evaluation of the results of the semester exams in the five years since the accreditation of the Cybersecurity specialization was granted.