Talk of the functions of objects (i.e., what the function of X is, or what X is for) is common throughout biology, indeed in many areas of science, as well as in our everyday understanding of objects in the world. This talk of what things are for, or the purpose for which they function, is the subject-matter of the field of teleology. There is widespread disagreement among philosophers and scientists about how we should understand functions. The main debate is between those who would base teleological functions on history and evolutionary selection of the thing in question (the selectionist view) and those who would base function on the actual causal role the thing plays (the systematic view). This chapter will describe the various approaches to functions, and defend a selectionist answer, that biological traits have evolved to function the way they do because of a past advantage. The paper will also discuss the counterarguments from the systematic view, and show how they fail to account for some major constraints on explaining functions, such as normativity.