We obtain a necessary and sufficient condition for a matrix A to be Birkhoff-James orthogonal to any subspace W of Mn(C). Using this we obtain an expression for the distance of A from any unital C*- subalgebra of Mn(C). © 2013 Elsevier Inc. All rights reserved.