A modern tool of interaction with the computer is the programming language Prolog. The authors discuss its position among other languages, emphasize its different character (declarative programming). They outline basic structures of Prolog and its type of function. They also give examples of creating data bases of patients and the possibility to use this language in the creation of expert systems in medicine.