In August, Markovic said that he was opposed to the Gay Pride "where they want to show something that is an illness as something normal."
The judgement said: "An aggravated form of discrimination has been determined, as well as expression and incitement of intolerance, hatred and intolerance based on sexual orientation, which represents an aggravated form of discrimination especially if it is done through media."
Aleksandar Olenik, a lawyer representing the GSA (Gay-Straight Alliance), told Agence France Presse: "The court decided that Dragan Markovic committed a serious act of discrimination and ordered him not to repeat it again."
GSA is "satisfied with the verdict and the fast reaction by the system of justice."
It is nevertheless the first time that there is a verdict of this kind for a politician in a country where the Gay Pride is banned by the police because of potential attack against LGBT people by homophobes.