DiagonalMatrix

DiagonalMatrix[list]
gives a matrix with the values in list on its diagonal and zeroes elsewhere.