Starbucks Corp. is planning to lay off approximately 5% of its global corporate workforce as it seeks to become a more nimble company.

The plan comes as the Seattle-based chain struggles to attract new and repeat customers to its U.S. coffee shops amid a highly competitive coffee market.

The company on Tuesday said it will lay off 350 employees....