The boundary-value problem for the electrostatic field with anisotropic media is formulated on the basis of introducing the medium property coefficient tensor. The boundary integral equations for this problem are deduced by the weighted residual method. The elementary solutions to the two-and three-dimensional anisotropic problems are derived. A two dimensional example with anisotropic media is given.