global supply chain disruptions have caused a delay in the receipt of inventory due to port congestion, reduced shipping vessel and container availability. We are actively working to diversify and leverage our sourcing model to help offset the impact of these supply chain challenges, but expect the disruptions to continue into 2022.
Gross Profit
Gross profit increased $4.6 million, or 4.9%, to $98.9 million for the third quarter of 2021, compared to $94.3 million for the third quarter of 2020, reflecting higher net sales, partially offset by a lower gross profit rate. As a percentage of net sales, our gross profit decreased to 32.9% for the third quarter of 2021, compared to 35.2% for the third quarter of 2020, reflecting higher inbound freight costs. In connection with the supply chain disruptions described earlier, our freight costs have risen significantly. We anticipate the higher inbound freight costs to continue into 2022, which may continue to impact our gross profit if we are unable to mitigate or fully recover these additional costs from price increases.
Gross profit increased $76.1 million, or 35.9%, to $287.8 million for the nine months ended October 30, 2021, compared to $211.7 million for the nine months ended October 31, 2020, due to higher net sales and improved gross profit rate. Our gross profit in the nine months ended October 31, 2020 was impacted by higher incremental cost of goods sold primarily due to $27.5 million in inventory markdowns reflecting the difficult retail environment driven by the pandemic, as well as $1.6 million in inventory markdowns related to the decision to exit our Fergie brand. As a percentage of net sales, our gross profit increased to 36.4% for the nine months ended October 30, 2021, compared to 31.7% for the nine months ended October 31, 2020.
Selling and Administrative Expenses
Selling and administrative expenses increased $0.5 million, or 0.6%, to $87.5 million for the third quarter of 2021, compared to $87.0 million for the third quarter of 2020. The increase was driven by higher salary and marketing expenses, partially offset by lower rent and facilities expenses, primarily due to the lower store count. As a percentage of net sales, selling and administrative expenses decreased to 29.1% for the third quarter of 2021, compared to 32.5% for the third quarter of 2020.
Selling and administrative expenses decreased $4.0 million, or 1.6%, to $249.2 million for the nine months ended October 30, 2021, compared to $253.2 million for the nine months ended October 31, 2020. The decrease was driven by lower retail facilities costs, primarily due to the lower store count, partially offset by higher marketing expenses. As a percentage of net sales, selling and administrative expenses decreased to 31.5% for the nine months ended October 30, 2021, compared to 37.9% for the nine months ended October 31, 2020.
Impairment of Goodwill and Intangible Assets
During the first quarter of 2020, we incurred impairment charges of $262.7 million, including $240.3 million associated with goodwill and $22.4 million associated with intangible assets, including $12.2 million for the Allen Edmonds trade name and $10.2 million for the Via Spiga trade name. There were no corresponding charges in the third quarter of 2020 or for the nine months ended October 30, 2021. Refer to Note 8 to the condensed consolidated financial statements for further discussion of these charges.
Restructuring and Other Special Charges, Net
Restructuring and other special charges of $13.5 million were recorded during the nine months ended October 30, 2021, reflecting expenses associated with the decision to close all but two flagship Naturalizer retail stores in the United States. These costs primarily represented lease termination and other store closure costs, including employee severance. For the nine months ended October 31, 2020, we recorded restructuring and other special charges of $48.4 million, reflecting expenses associated with the impact of the pandemic on our business operations, primarily impairment charges on store furniture and fixtures and lease right-of-use assets, liabilities due to our factories for order cancellations and severance. Refer to Note 5 to the condensed consolidated financial statements for additional information related to these charges.
Operating Earnings (Loss)
Operating earnings increased $4.1 million to $11.4 million for the third quarter of 2021, compared to $7.3 million for the third quarter of 2020, as a result of the factors described above. As a percentage of net sales, operating earnings were 3.8% for the third quarter of 2021, compared to 2.7% in the third quarter of 2020.
Operating earnings (loss) increased $377.7 million to operating earnings of $25.1 million for the nine months ended October 30, 2021, compared to an operating loss of $352.6 million for the nine months ended October 31, 2020, as a result of the factors described above. As a percentage of net sales, operating earnings were 3.2% for the nine months ended October 30, 2021, compared to an operating loss of 52.7% for the nine months ended October 31, 2020.