Sensex, Nifty declined amid subdued trends in global markets, broad-based profit-booking and pressure in metal and IT stocks.