Tagmata was a military rank in the army of the Byzantine Empire. These were company commanders and so roughly equivalent to captain.