New York (CNN Business) In another sign of the times for retail, Lowe's is closing 47 North American stores.

Lowe's said Monday that those locations are underperforming and the decision will help the hardware chain focus on its most profitable stores.

"The store closures are a necessary step in our strategic reassessment as we focus on building a stronger business," said CEO Marvin Ellison, in a statement.

Retail stores are struggling to adjust to the rapid rise of online shopping, particularly from Amazon ( AMZN ). Many successful retailers with big stores have adjusted their business strategies to make better use of their physical spaces. Others, including Sears , Kmart and Toys "R" Us, failed.

Lowe's and its rival Home Depot have proven to be largely Amazon-proof, because Amazon does not sell lumber or other heavy, bulky home improvement products.

Read More