The Federal Reserve's balance sheet expanded to a record size in the latest week, as the central bank bought more bonds in an effort to support the economy, Fed data released on Thursday showed.

The purchase was part of its $600 billion program, dubbed QE2, aimed at stimulating investment and economic activity.

The balance sheet -- a broad gauge of Fed lending to the financial system -- swelled to $2.772 trillion in the week ended June 1 from $2.759 trillion the prior week.

The central bank's holding of U.S. government securities grew to $1.532 trillion on Wednesday from last week's $1.519 trillion total.

The central bank has signaled it will complete QE2 at the end of June, but will continue to reinvest proceeds from the bonds as they mature.

The Fed's ownership of mortgage bonds guaranteed by Fannie Mae , Freddie Mac and the Government National Mortgage Association (Ginnie Mae) were steady at $917.86 billion, unchanged from the previous week.

The Fed's holdings of debt issued by Fannie Mae, Freddie Mac and the Federal Home Loan Bank were also unchanged, at $119.09 billion, from the previous week.

The Fed's overnight direct loans to credit-worthy banks via its discount window averaged $25 million a day in the week ended Wednesday, compared with an average daily rate of $11 million last week.

(Reporting by Emily Flitter; Editing by James Dalgleish)