Thousands of people have marched in Taipei to protest the imports of U.S. pork and beef.
The vote goes against a May 2017 Constitutional Court ruling.
An estimated 130,000 people took part in Saturday's parade, pledging support for same-sex marriage ahead of a Nov. 24 referendum.
The quake struck about 14 miles northeast of the city of Hualien shortly before midnight.