PORTLAND — A longtime Westbrook High School teacher and soccer coach who resigned this fall was sentenced Thursday to five days in jail and forced to surrender his teaching license for providing alcohol to a minor.

Westbrook police received a report in September that Timothy Gillis, 43, of Portland gave alcohol to a 16-year-old at his apartment on Whitney Avenue in August.

Police would not say if the minor was a student at the high school or disclose the gender.

School Resource Officer Ryan Close did an investigation that led police to issue a summons to Gillis in November citing him with furnishing liquor to a minor.

Gillis pleaded guilty to the charge Thursday at the Cumberland County Courthouse.

Gillis also was charged with allowing a minor to possess or consume liquor, but the charge was dropped in a plea agreement with the prosecutor.

Assistant District Attorney Matt Tice said that having Gillis surrender his teaching license was “an important part” of the deal.

Gillis’ five-day sentence in the Cumberland County Jail is scheduled to begin Saturday.

When asked if he wanted to comment after the sentencing, Gillis deferred to his attorney, Gerard Conley, who declined.

Gillis was hired to teach English at Westbrook High in 1993. He became the boys’ varsity soccer coach in 1998 and held that position until his resignation, which took effect Oct. 3, according to school officials.

Gillis also coached boys’ varsity tennis and served as an adviser to the student council and the chess club.

Superintendent Marc Gousse declined to comment on Gillis’ sentencing, as did Brendan Rielly, the attorney who represents the school department.