New York (CNN Business) Target capped off its best year in more than a decade with a strong holiday shopping season.

Sales at Target stores open at least a year grew 5% last year — its best performance since 2005.

Target's stellar 2018 got a big boost from the holiday season. Comparable sales grew 5.3% during its most recent quarter compared with last year. Its digital sales grew 31%.

The big-box retailer gained market share in key categories like clothes and home furnishings during the holidays and got a boost from the growing economy. Target said foot traffic to stores was up.

"We have built a successful, durable model," Target CEO Brian Cornell told investors at a meeting Tuesday. "Every piece of our strategy is working."

Read More