Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to incorporation by reference in Registration Statements No., No. 333-102012 and No. 333-81199, No. 333-49563, No. 333-06631 on Form S-3, No. 333-112416 on Form S-4, No. 333-113842 and No. 333-113839 on Form S-8 of Union Bankshares Corporation and subsidiaries of our report dated February 18, 2005, relating to the consolidated balance sheets of Union Bankshares Corporation and subsidiaries as of December 31, 2005 and 2004, and the related consolidated statements of income, changes in stockholders’ equity, and cash flows for the years ended December 31, 2005, 2004 and 2003, which report appears in the Union Bankshares Corporation and subsidiaries’ 2005 Form 10-K.

 

/s/ Yount, Hyde & Barbour, P. C.

Winchester, Virginia

March 3, 2006