DUBLIN — The government of Ireland has barred an Arizona-based Baptist pastor accused of anti-Semitic and homophobic hate speech from entering the country, invoking for the first time a 1999 immigration act that allows such exclusion orders on grounds of national security or public policy.

Charlie Flanagan, Ireland’s minister for justice and equality, said on Sunday that he had signed the order barring the pastor, Steven L. Anderson of Faithful Word Baptist Church, “under my executive powers in the interests of public policy.” He did not issue any further comment.

Pastor Anderson’s Faithful Word Baptist Church has been labeled a hate group by the Southern Poverty Law Center and by the Anti-Defamation League. He first gained prominence outside his ministry, which is in a Tempe, Ariz., strip mall, when he announced in 2009 that he hated President Barack Obama and prayed for his death. He has called for the United States government to exterminate all gay people and welcomed the murder of 49 people in the mass shooting at the Pulse gay nightclub in Orlando, Fla., in 2016.

“The good news is that there’s 50 less pedophiles in this world, because, you know, these homosexuals are a bunch of disgusting perverts and pedophiles,” Pastor Anderson said in a video he posted online. “That’s who was a victim here, are a bunch of just disgusting homosexuals at a gay bar, O.K.?”