Can anyone explan exchange traded funds?

Exchange traded funds sound very interesting to me, and I understand the concept of (generally) the price ideally moving with the index that the fund aims to mirror. However, I don't seem to understand how these are created and redeemed. Could anyone explain this to me? It be greatly appreciated. Thanks!