What causes osteoporosis?

What causes osteoporosis?