U.S. retail sales rose solidly in June, boosted by increases in purchases of motor vehicles and a range of other goods, cementing expectations for robust economic growth in the second quarter.

The Commerce Department said on Monday retail sales increased 0.5 percent last month. Data for May was revised higher to show sales rising 1.3 percent instead of the previously reported 0.8 percent gain. May's rise in retail sales was the largest since September 2017.

Economists polled by Reuters had forecast retail sales rising 0.5 percent in June. Retail sales in June increased 6.6 percent from a year ago.

Excluding automobiles, gasoline, building materials and food services, retail sales were unchanged last month after an upwardly revised 0.8 percent increase in May. These so-called core retail sales correspond most closely with the consumer spending component of gross domestic product.

Core retail sales were previously reported to have risen 0.5 percent in May.

Given the upward revision to May data, the unchanged reading in core retail sales last month likely does not change views that consumer spending accelerated in the second quarter. Consumer spending, which accounts for more than two-thirds of U.S. economic activity, braked sharply in the January-March period, growing at its slowest pace in nearly five years.