From what my buddy was telling me there is a mathematical problem/algorithm that has to be solved. It is very difficult to solve the problem, but once it is solved it's easy to verify that it's correct. A bunch of people use computing power to solve it, and when someone does they are awarded a bitcoin. Then the process repeats itself