You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Purpose of liners and bases is/are: and explain in detail?
Many restorative dental materials that provide excellent properties for the bulk of a dental restoration may not protect the dental pulp during setting or during cyclic thermal or mechanical stressing. Pulpal protection requires consideration of:

Chemical protection.
Electrical protection.
Thermal protection.
Pulpal medication.
Mechanical protection. 

Liners and bases are materials placed between dentin (and sometimes pulp) and the restoration to provide pulpal protection or pulpal response.