Financial markets and institutions play important roles in the economy by facilitating transactions and the efficient allocation of resources. They consist of agents, brokers, and intermediaries that link investors and borrowers. Financial institutions act as intermediaries by collecting funds from savers and channeling them to borrowers. They perform important functions like managing payments, trading securities, modifying the terms of loans (transmutation), diversifying risk, and managing portfolios. This allows for the distribution of risk across the economy and a more efficient allocation of capital over time.