period in 2019. The increase of $1.5 million, or 58.0%, in occupancy expenses for the year ended December 31, 2020 compared to 2019 was due primarily to the addition of five branches acquired in the Heritage acquisition.
Legal and Professional Fees. Legal and professional fees were $2.7 million for each of the six months ended June 30, 2021 and 2020. Legal and professional fees were $4.0 million and $2.4 million for the years ended December 31, 2020 and 2019, respectively. The increase for the year ended December 31, 2020 compared to the year ended December 31, 2019 was primarily due to higher audit, consulting, legal, and recruitment costs. Higher costs primarily resulted from expenses related to the acquisition of Heritage, the PPP loan program, and additional personnel.
Data Processing. Data processing costs were $843,000 and $1.0 million for the six months ended June 30, 2021 and 2020, respectively. Data processing costs were $2.3 million and $1.1 million for the years ended December 31, 2020 and 2019, respectively. The increase for the year ended December 31, 2020 compared to the year ended December 31, 2019 was primarily due to: (i) higher transaction volumes related to the increased number of loan and deposit accounts, (ii) data conversion costs related to the Heritage acquisition, and (iii) data processing costs for Heritage prior to core system conversion on July 1, 2020.
Network Expenses. Network expenses were $587,000 and $398,000 for the six months ended June 30, 2021 and 2020, respectively. Network expenses were $885,000 and $630,000 for the years ended December 31, 2020 and 2019, respectively. The increases were primarily due to an increase in the number of branches from seven to twelve as a result of the Heritage acquisition and an increase in the number of employees from 147 at December 31, 2019 to 265 at June 30, 2021.
Regulatory Assessments. Regulatory assessment expenses were $343,000 and $478,000 for the six months ended June 30, 2021 and 2020, respectively. Regulatory assessment expenses were $1.3 million and $434,000 for the years ended December 31, 2020 and 2019, respectively.
Marketing Expenses. Advertising and marketing-related expenses were $810,000 and $555,000 for the six months ended June 30, 2021 and 2020, respectively. Advertising and marketing-related expenses were $1.3 million and $699,000 for the years ended December 31, 2020 and 2019, respectively. The increases were primarily due to new digital marketing campaigns for TCCC and new deposit campaigns as part of the Heritage acquisition.
Loan Operations and Other Real Estate Owned Expenses. Loan operations and other real estate owned expenses were $1.2 million and $955,000 for the six months ended June 30, 2021 and 2020, respectively. Loan operations and other real estate owned expenses were $1.4 million and $819,000 for the years ended December 31, 2020 and 2019, respectively. The increases were primarily due to processing costs and agent fees related to the PPP loan program.
Loss on Sale of Other Real Estate Owned. The Company recorded a loss of $344,000 on the sale of one OREO property in the six month period ended June 30, 2021. There were no OREO properties sold in the six month period ended June 30, 2020. The Company recorded a loss of $38,100 on the sale of three OREO properties sold during the year ended December 31, 2019. There were no OREO properties sold during the year ended December 31, 2020.
Other. This category includes operating and administrative expenses, such as operational losses (debit cards, check fraud, etc.), software licenses, insurance, director fees, publications and subscription expenses, postage and mail expenses, correspondent bank fees, office supplies and communication expenses. Other noninterest expense was $1.6 million for the six months ended June 30, 2021, an increase of $301,000, or 22.6%, compared to the same period in 2020, primarily due to an increase in telephone expenses and software maintenance expense. Other noninterest expense increased to $2.9 million for the year ended December 31, 2020, compared to $1.6 million for the same period in 2019, an increase of $1.3 million, or 82.6%. The increase was primarily due
100