Frying is the cooking of food in oil or fat. Chemically, oils and fats are the same, differing only in melting point, but the distinction is only made when needed. In commerce, many fats are called oils by custom, e.g. palm oil and coconut oil, which are solid at room temperature.