President Donald Trump announced Wednesday that the U.S. government will not allow transgender individuals to serve in the military “in any capacity,” reversing a 2016 decision made under President Obama. But the decision contradicts a promise Trump made during his campaign to support the LGBT community.

“I will fight for you while Hillary brings in more people that will threaten your freedom and beliefs,” Trump wrote in June 14, 2016 tweet.

The message came just weeks before then-Defense Secretary Ash Carter announced that transgender people could openly serve in the armed forces. The Pentagon recently announced a six-month delay on that rule change.

Trump’s tweet also came two days after the Pulse nightclub shooting in Orlando, Florida, where 49 people were killed at a nightclub serving predominantly LGBTQ patrons.

Trump’s 2016 tweet immediately began re-circulating on Twitter after he announced the new transgender ban.

Caitlyn Jenner, who told CNN’s Don Lemon in April that she had voted for Trump, quoted the tweet, writing on Twitter, “there are 15,000 patriotic transgender Americans in the US military fighting for all of us. What happened to your promise to fight for them?”

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Alana Abramson at Alana.Abramson@time.com.