The president and chief executive of Toyota Motor North America, accused last week in a sexual harassment lawsuit, is leaving the post, the automaker said Tuesday.

In response, the world’s No. 2 automaker chose its first American as president of the region’s operations.