It's even a GUI option:

How to: Rebuild an Index (SQL Server Management Studio)
http://msdn2.microsoft.com/en-us/library/ms187874.aspx