The golden ratio was first studied by the ancient Greeks, and it was defined in terms of geometry. Take a piece of line and divide it into a longer and a shorter piece so that the ratio between the whole piece and the longer piece is the same as the ratio between the longer piece and the shorter piece.
Divide the line so that the ratio between the whole line (a+b) and the longer piece (a) is equal to the ratio between the longer piece (a) and the shorter piece (b).
The golden ratio has all sorts of interesting properties, but perhaps the most famous one is its link to the Fibonacci sequence.
This famous sequence of numbers starts with two 1s. Subsequent numbers are formed by adding the two previous ones. This gives
$$1,1,2,3,5,8,13,21,34,55,89,....$$The sequence can be continued indefinitely. You can form a new sequence by dividing each number in the Fibonacci sequence by the number that came before:
$$1/1, 2/1, 3/2, 5/3, 8/5, 13/8, 21/13, 34/21, 55/34, 89/55, ....$$Here's a picture of this sequence:
Ratio of successive Fibonacci terms.
You can see that, as you move down the sequence, the numbers approach a limiting value. And that limiting value is exactly the golden ratio!
To find out more about the Fibonacci sequence and the golden ratio, including their appearance in nature and supposed link to aesthetics, see this selection of articles.