This document provides a user manual for gstat, a program for geostatistical modeling, prediction, and simulation of spatial data in one, two or three dimensions. Gstat allows for variogram modeling, kriging (prediction), and simulation using a variety of methods. It supports many data formats and provides a flexible command language for controlling geostatistical analyses. The manual describes the capabilities and proper use of the gstat program.