While both index funds and ETFs aim to replicate the performance of a market index, they differ in their structure and how they are traded on the market. Index funds are mutual funds that are bought and sold at the end of the trading day at their net asset value (NAV). In contrast, ETFs trade on exchanges like individual stocks throughout the trading day, and their prices can fluctuate based on supply and demand.