Loans
Loans increased $1.5 billion, or 19.3%, to $9.4 billion as of June 30, 2022, compared to $7.9 billion as of March 31, 2022, and increased $3.4 billion, or 56.8%, compared to $6.0 billion as of June 30, 2021. The increases in loan balances were primarily due to an increase in loan fundings, which in the second quarter of 2022 were $2.2 billion, an increase of $1.1 billion, or 95.5%, from the first quarter of 2022 and an increase of $1.1 billion, or 98.1%, from the second quarter of 2021. Loan balances during the second quarter of 2022 were also impacted by loan payoffs of $719 million, compared to payoffs of $657 million in the first quarter of 2022 and $752 million in the second quarter of 2021. The current pipeline continues to remain at strong levels going into the third quarter for multifamily and other commercial business loans.
Contributing to loan originations during the quarter, our commercial business division funded a record $1.2 billion of new commercial loans during the second quarter of 2022, of which 30% were adjustable commercial revolving lines of credit. The remaining C&I originations were comprised of $518 million of public finance loans, $289 million of commercial term loans, $33 million of owner occupied commercial real estate loans, and $32 million of equipment finance leases. The large increase in public finance loans was driven by a temporary increase in demand for bank loans away from the bond market by public municipalities, following dramatic interest rate market movements in the second quarter. Our public finance division has become a strategic component of our business originations, benefiting both our credit quality with historically low loan losses, while also lowering our effective tax rate over time. We anticipate heightened originations in this channel through July, as this pipeline is funded, with a return to our historical run rate starting in August.
Investment Securities
Investment securities were $1.2 billion as of June 30, 2022, and March 31, 2022, and increased $436.2 million, or 56.9%, compared to $745.9 million as of June 30, 2021. The increase from June 30, 2021 was primarily due to the investment securities acquired in the TGR Financial acquisition during the fourth quarter of 2021.
The allowance for credit losses for investments increased by $0.5 million from the prior quarter, to $11.2 million as of June 30, 2022, from $10.7 million as of March 31, 2022, and increased $2.1 million, from $9.1 million as of June 30, 2021. The increase was a result of faster than expected prepayments that negatively impacted the projected cash flows on interest-only strip securities.
Deposits and Borrowings
Deposits were $9.5 billion as of June 30, 2022, an increase of $581 million, or 6.5%, compared to $9.0 billion as of March 31, 2022, and an increase of $2.4 billion, or 34.2%, compared to $7.1 billion as of June 30, 2021. Deposit growth during the second quarter of 2022 compared to the first quarter of 2022 was primarily driven by an increase of $291.3 million, or 8.8%, in non-interest bearing demand deposits, largely attributable to our commercial deposit services division, and an increase in money market and savings accounts of $277.3 million, or 10.7%, largely attributable to our retail branches and digital bank channel. Noninterest-bearing demand deposits measured 37.6% of total deposits as of June 30, 2022, compared to 36.8% of total deposits as of March 31, 2022, while core deposits increased by $581 million compared to the linked quarter, and measured 99% of total deposits as of June 30, 2022, and March 31, 2022. Commercial business deposits were 74% of total core deposits as of June 30, 2022.
Our loan to deposit ratio measured 98.8% as of June 30, 2022, compared to 88.2% as of March 31, 2022, and 84.6% as of June 30, 2021.