President Trump slammed Jeff Bezos' online giant Amazon on Wednesday for hurting the U.S. workforce and smaller retail companies by avoiding many of taxes those companies pay.

"Amazon is doing great damage to tax paying retailers. Towns, cities and states throughout the U.S. are being hurt — many jobs being lost!" Trump tweeted Wednesday morning.

Amazon, which made Bezos the world's richest man, held job fairs this month at nearly a dozen warehouses across the country and hired 40,000 to 50,000 full-time workers. The company plans to hire a total of 100,000 full-time employees by mid-2018.

While Amazon is thriving, traditional retailers who have historically reached consumers through brick and mortar stores are in a bind trying to compete with online retailers.

In June, Trump accused Bezos' company of skirting Internet taxes, and he has complained that Bezos used his wealth to buy the Washington Post and attack the Trump administration.

Trump also congratulated acting Sen. Luther Strange, R-Ala., and former chief justice of the Alabama Supreme Court Roy Moore for placing in the top two in Tuesday's special election primary for Attorney General Jeff Sessions' Senate seat.

"Congratulation to Roy Moore and Luther Strange for being the final two and heading into a September runoff in Alabama. Exciting race!" Trump tweeted Wednesday.

Trump had endorsed Strange in the race.