Under the influence is a legal term that describes a state of influence that a person is in due to the use of a substance. The term is often associated with the use of alcohol or drugs, and can also refer to medicatoin that impairs a person's normal state of mind.
In a legal context, to be under the influence means that the person's judgment is impaired by virtue of having ingested some substance.