and lines of credit increased by $2.9 million, or 3.6%, to $84.1 million at June 30, 2023 from $81.2 million at June 30, 2022. These increases were partially offset by a decrease in commercial real estate loans of $29.2 million, or 6.5%, to $424.3 million at June 30, 2023 from $453.5 million at June 30, 2022 and a decrease in commercial and industrial loans of $14.8 million, or 14.3%, to $88.4 million at June 30, 2023 from $103.2 million at June 30, 2022.
The increase in residential mortgage loans was related to the Bank’s asset allocation shift, using investment securities cash flow and cash to fund higher yielding assets. The Bank’s relationship with the Mortgage Banking Company facilitated a significant increase in residential mortgage loan volume, despite the rising interest rate environment. The increase in commercial construction loans was due to funding of increased construction commitments. The decrease in commercial real estate loans was related to loan payoffs outpacing loan originations. The decrease in commercial and industrial loans was primarily due to reduced line of credit utilization rates.
Deposits. Total deposits of $1.54 billion at June 30, 2023 decreased $138.4 million, or 8.2%, from $1.68 billion at June 30, 2022. By deposit category, non-interest bearing demand accounts decreased by $67.4 million, or 11.3%, to $526.1 million at June 30, 2023 from $593.5 million at June 30, 2022, interest-bearing demand accounts decreased by $44.0 million, or 24.1%, to $138.8 million at June 30, 2023 from $182.8 million at June 30, 2022, money market accounts decreased by $34.3 million, or 6.9%, to $462.9 million at June 30, 2023 from $497.2 million at June 30, 2022, and savings accounts decreased by $29.3 million, or 9.0%, to $297.0 million at June 30, 2023 from $326.3 million at June 30, 2022, partially offset by an increase in certificates of deposit of $36.4 million, or 45.2%, to $117.0 million at June 30, 2023 from $80.6 million at June 30, 2022. The decrease in non-maturity deposits was primarily concentrated in certain larger and more rate-sensitive accounts, as well as a migration to certificates of deposit. The increase in certificates of deposit was concentrated in brokered deposits. The effects of the Federal Reserve Board’s rapidly tightening monetary policy, inflation, and higher rate alternatives continued to have an impact on deposit balances in the fourth fiscal quarter of 2023.
Total Shareholders’ Equity. Total shareholders’ equity of $266.7 million at June 30, 2023 increased $24.1 million, or 9.9%, from $242.6 million at June 30, 2022 primarily as a result of net income of $21.9 million and a decrease in accumulated other comprehensive loss of $1.6 million for the year ended June 30, 2023.
Comparison of Operating Results for the Years Ended June 30, 2023 and June 30, 2022
General. Net income increased by $11.6 million, or 113.5%, to $21.9 million for the year ended June 30, 2023 from $10.3 million for the year ended June 30, 2022. The increase was primarily due to a $23.1 million increase in net interest income, partially offset by an $8.1 million increase in non-interest expense and a $2.8 million increase in income tax expense.
Interest and Dividend Income. Interest and dividend income increased $27.2 million, or 62.0%, to $71.0 million for the year ended June 30, 2023, from $43.8 million for the year ended June 30, 2022 due to increases in interest income on loans, securities, and interest-earning deposits and other. The increase was the result of a 154 basis points increase in the average yield on interest-earning assets to 4.03% for the year ended June 30, 2023, from 2.49% for the year ended June 30, 2022. The increase in the average yield on interest-earning assets was driven by a significant increase in variable rate loan yields and yields on interest-earning deposits with banks due to rising market interest rates, as well as due to market related increases in interest rates on new loans and securities. Average interest-earning assets of $1.76 billion for the year ended June 30, 2023 were relatively unchanged from the year ended June 30, 2022.
Interest income on loans increased $15.6 million, or 39.6%, to $55.2 million for the year ended June 30, 2023 from $39.6 million for the year ended June 30, 2022. Interest income on loans increased due to a 130 basis points increase in the average yield on loans to 5.21% for the year ended June 30, 2023 from 3.91% for the year ended June 30, 2022, coupled with a $47.1 million increase in the average balance of loans to $1.06 billion for the year ended June 30, 2023 from $1.01 billion for the year ended June 30, 2022. The increase in average yield on loans was primarily due to loans tied to variable short-term rates which increased significantly during the year ended June 30, 2023 as compared to the prior year, offset in part by a $1.7 million decrease in Paycheck Protection Program (“PPP”) loan related interest income for the year ended June 30, 2023 as compared to the year ended June 30, 2022. The increase in the average balance of loans was principally due to purchases of residential mortgage loans.