This is an introductory textbook on geometry (affine, Euclidean and projective) suitable for any undergraduate or first-year graduate course in mathematics and physics. In particular, several parts of the first ten chapters can be used in a course of linear algebra, affine and Euclidean geometry by students of some branches of engineering and computer science. Chapter 11 may be useful as an elementary introduction to algebraic geometry for advanced undergraduate and graduate students of mathematics. Chapters 12 and 13 may be a part of a course on non-Euclidean geometry for mathematics students. Chapter 13 may be of some interest for students of theoretical physics (Galilean and Einstein's general relativity). It provides full proofs and includes many examples and exercises. The covered topics include vector spaces and quadratic forms, affine and projective spaces over an arbitrary field; Euclidean spaces; some synthetic affine, Euclidean and projective geometry; affine and projective hyperquadrics with coefficients in an arbitrary field of characteristic different from 2; Bézout's theorem for curves of P^2 (K), where K is a fixed algebraically closed field of arbitrary characteristic; and Cayley-Klein geometries.