The two discussed "Twitter's commitment to protecting the health of the public conversation ahead of the 2020 U.S. election," according to a statement from the company.
Trump makes abundant use of Twitter to defend his administration's actions and attack political opponents and the media.
Tuesday's meeting came "at the president's invitation," according to the statement.
In a tweet, Trump said the two had discussed a number of topics.
Twitter stock soared Tuesday after the company posted better-than-expected financial results for the latest quarter.
Introducing TheStreet Courses: Financial titans Jim Cramer and Robert Powell are bringing their market savvy and investing strategies to you. Learn how to create tax-efficient income, avoid top mistakes, reduce risk and more. With our courses, you will have the tools and knowledge needed to achieve your financial goals. Learn more about TheStreet Courses on investing and personal finance here.