The BSE Sensex closed marginally lower at 77,505.96, while the NSE Nifty settled at 23,482.15