Paying off your loans gives a guaranteed tax-free return, which is very hard to beat on a consistent basis. Obviously you can get lucky with market timing, but I prefer the guarantee. It also increases your monthly cash flow, which you can start investing.